package client.persistance;

import java.util.List;

import client.bean.Member;
import client.bean.Plan;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("Adminko")
public interface Adminko extends RemoteService {
	Plan getPlan();

	List<Plan> getPlans();

	void updatePlans(List<Plan> plans);

	void addMember(Member member);

	void informMembers(Plan plan);

	String getURLFromUniquePath(String encodedPath);

	public static class App {
		private static final AdminkoAsync ourInstance = (AdminkoAsync) GWT.create(Adminko.class);

		public static AdminkoAsync getInstance() {
			return ourInstance;
		}
	}
}
